<%--
  Created by IntelliJ IDEA.
  User: xierongxian
  Date: 2016/3/31
  Time: 16:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>


<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <script src="<%=path%>/resource/js/jquery-1.8.3.min.js"></script>
    <title></title>

    <script>
        $(function(){
            $("#tijiao").on('click',function(){
                $.ajax({
                    type: "POST",
                    url:"<%=path%>/wx/depositweixin.do",
                    data:{
                        "gid":1,
                        "ailiPay":100.12,
                    },
                    dataType: "json",
                    success: function(data){
                        alert(data);
                    }
                });
            })
        })
    </script>
</head>
<body>
<form  method="post">
    <span id="b"></span>
    <input type="button" name="" id="tijiao"  value="测试" />
</form>

</body>
</html>

